F
F
Festour2014-02-13 20:55:12
linux
Festour, 2014-02-13 20:55:12

Virtualizing linux (OpenSuse) from a real partition on Windows 7

Actually, there is an installed and modified OpenSuse. What exactly was modified, I do not know, and I am unlikely to find out. So it's easier for me to somehow copy and virtualize it from the partition. The host OS is Windows 7 x64.
I googled, but could not find a guide for all the steps, from copying a partition to Windows, to virtualization itself. On what program to virtualize, there is no big difference.
Thanks in advance for your answers!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2014-02-13
@plin2s

Virtual box can work with real partitions. The instructions are not hard to find. Didn't work with other virtualization on WIN desktop.

F
fokk, 2014-02-18
@fokk

As far as I understood the task of virtualizing a real wheelbarrow?
I use Dump=>Restore.
1. Turn off the original machine.
2. Boot from LiveCD (In my case - Ubuntu Desktop 12.04)
3. sudo apt-get install dump
3.1 If it does not find repositories with the dump package, go to "/etc/apt/sources.list" and after the words restricted add universe
3.2 sudo apt-get update
3.3 Repeat step 3.
4. To write a dump file via sftp:
4.1 sudo apt-get install sshfs
4.2 sudo sshfs [email protected]_or_ip:/path/to/mount /mnt
5. sudo dump -0auf /mnt/dumpfilename .dump /dev/sd* # where /dev/sd* is the partition to dump.
6. On a new machine, install the same ubuntu (in your SUSE slack) (In order for Grub to get up correctly)
7. Boot from a LiveCD (In my case, Ubuntu Desktop 12.04)
8. sudo apt-get install dump
9. If not finds repositories, see points 3
10. sudo apt-get install sshfs
11. mkdir /mnt/MountPointForSftp
12. sshfs [email protected]_or_ip:/path/to/mount /mnt/MountPointForSftp
13. cd /mnt/sd* (the disk where we will roll dump, mount it first accordingly)
14. cp -r boot /mnt/MountPointForSftp
15. cp -r etc /mnt/MountPointForSftp
16. rm -rf ./*
17. restore -i -f /mnt/MountPointForSftp/dumpFileName.dump
18. restore > ls
19. restore > add *
20. restore> extract
21. # 1
22. OwnerMode - No
23. mv boot boot_bak
24. mv etc/fstab mv etc/fstab_bak
25. cp -r /mnt/MountPointForSftp/boot ./
26. cp /mnt/MountPointForSftp/ etc/fstab ./etc/fstab
27. Reboot!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question