ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
hjlxg
帖子: 14
注册时间: 2008-12-01 20:39
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#106

帖子 hjlxg » 2008-12-09 8:42

真是够好奇的呀。楼主试过了吗
fenwu1979
帖子: 62
注册时间: 2007-01-27 13:18
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#107

帖子 fenwu1979 » 2008-12-09 9:42

cpu和memory得够才能这样啊
头像
追疯少年
帖子: 950
注册时间: 2008-03-13 23:37
送出感谢: 0
接收感谢: 1 次
联系:

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#108

帖子 追疯少年 » 2008-12-09 10:59

就是阿,没事作啦,这么折磨你的电脑吗???
qiqi13245
帖子: 48
注册时间: 2008-10-05 12:24
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#109

帖子 qiqi13245 » 2008-12-10 22:55

LZ可以去精神病监视区了
。。。。根本不可以,为了证明Lz的这番话我还特地试了,不行,地一个提示就是不能在虚拟机下打开令一个虚拟机的电源,要么就在开机的时候死机
qiqi13245
帖子: 48
注册时间: 2008-10-05 12:24
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#110

帖子 qiqi13245 » 2008-12-10 22:55

LZ可以去精神病监视区了
。。。。根本不可以,为了证明Lz的这番话我还特地试了,不行,地一个提示就是不能在虚拟机下打开令一个虚拟机的电源,要么就在开机的时候死机
bluesun7509
帖子: 7
注册时间: 2008-11-25 18:46
送出感谢: 0
接收感谢: 0

Re:

#111

帖子 bluesun7509 » 2008-12-11 10:33

jimmin 写了:这是不可能的,现在的虚拟机都不支持虚拟机中套接虚拟机的,好像连安装都不行。
看来你是孤陋寡闻啦,人家boobooke的视频都发出来了。看看海明老师是怎么把在vista中用vmwear安装ubuntu810,再在ubuntu810中安装kvm虚拟机,又在kvm中虚拟安装winxp的,哈哈,那才叫搞笑呢。。。
mrguo
帖子: 129
注册时间: 2007-05-28 5:27
送出感谢: 3 次
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#112

帖子 mrguo » 2009-01-06 1:46

支持楼主的好奇心!!!

大家都君子动口不动手,浪费了么多的口水,一定用都没有 :em04

关于虚拟机能否套装问题,KVM官方已经有定论了,答案是可以装,即:至少有一种官方认可的情况下是可以安装的(但是能装多少层就不清楚了,另注:kvm没有windows版的,所以无法进行windows的套接)。如果不相信,请先安装KVM-82,然后再执行: qemu-system-x86_64 --help 命令,在输出的说明文档中,请注意这一句的参数说明:
-enable-nesting enable support for running a VM inside the VM (AMD only)
也就是说,加上-enable-nesting参数后,KVM就可以支持在虚拟机环境中运行虚拟机!
有兴趣、有时间的朋友可以去试一试嘛,呵呵。。。

======================================
附:命令参数的说明(给不熟悉KVM的朋友参考)
qemu-system-x86_64 --help
QEMU PC emulator version 0.9.1 (kvm-82), Copyright (c) 2003-2008 Fabrice Bellard
usage: qemu [options] [disk_image]

'disk_image' is a raw hard image image for IDE hard disk 0

Standard options:
-M machine select emulated machine (-M ? for list)
-cpu cpu select CPU (-cpu ? for list)
-fda/-fdb file use 'file' as floppy disk 0/1 image
-hda/-hdb file use 'file' as IDE hard disk 0/1 image
-hdc/-hdd file use 'file' as IDE hard disk 2/3 image
-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)
-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]
[,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]
[,cache=writethrough|writeback|none][,format=f]
[,boot=on|off]
use 'file' as a drive image
-mtdblock file use 'file' as on-board Flash memory image
-sd file use 'file' as SecureDigital card image
-pflash file use 'file' as a parallel flash image
-boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)
-snapshot write to temporary files instead of disk image files
-no-frame open SDL window without a frame and window decorations
-alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
-no-quit disable SDL window close capability
-no-fd-bootchk disable boot signature checking for floppy disks
-m megs set virtual RAM size to megs MB [default=128]
-smp n set the number of CPUs to 'n' [default=1]
-nographic disable graphical output and redirect serial I/Os to console
-portrait rotate graphical output 90 deg left (only PXA LCD)
-k language use keyboard layout (for example "fr" for French)
-audio-help print list of audio drivers and their options
-soundhw c1,... enable audio support
and only specified sound cards (comma separated list)
use -soundhw ? to get the list of supported cards
use -soundhw all to enable all of them
-vga [std|cirrus|vmware]
select video card type
-localtime set the real time clock to local time [default=utc]
-full-screen start in full screen
-win2k-hack use it when installing Windows 2000 to avoid a disk full bug
-usb enable the USB driver (will be the default soon)
-usbdevice name add the host or guest USB device 'name'
-name string set the name of the guest
-uuid %08x-%04x-%04x-%04x-%012x specify machine UUID

Network options:
-net nic[,vlan=n][,macaddr=addr][,model=type]
create a new Network Interface Card and connect it to VLAN 'n'
-net user[,vlan=n][,hostname=host]
connect the user mode network stack to VLAN 'n' and send
hostname 'host' to DHCP clients
-net tap[,vlan=n][,fd=h][,ifname=name][,script=file][,downscript=dfile]
connect the host TAP network interface to VLAN 'n' and use the
network scripts 'file' (default=/etc/qemu-ifup)
and 'dfile' (default=/etc/qemu-ifdown);
use '[down]script=no' to disable script execution;
use 'fd=h' to connect to an already opened TAP interface
-net socket[,vlan=n][,fd=h][,listen=[host]:port][,connect=host:port]
connect the vlan 'n' to another VLAN using a socket connection
-net socket[,vlan=n][,fd=h][,mcast=maddr:port]
connect the vlan 'n' to multicast maddr and port
-net vde[,vlan=n][,sock=socketpath][,port=n][,group=groupname][,mode=octalmode]
connect the vlan 'n' to port 'n' of a vde switch running
on host and listening for incoming connections on 'socketpath'.
Use group 'groupname' and mode 'octalmode' to change default
ownership and permissions for communication port.
-net none use it alone to have zero network devices; if no -net option
is provided, the default is '-net nic -net user'

-bt hci,null Dumb bluetooth HCI - doesn't respond to commands
-bt hci,host[:id]
Use host's HCI with the given name
-bt hci[,vlan=n]
Emulate a standard HCI in virtual scatternet 'n'
-bt vhci[,vlan=n]
Add host computer to virtual scatternet 'n' using VHCI
-bt device:dev[,vlan=n]
Emulate a bluetooth device 'dev' in scatternet 'n'

-tftp dir allow tftp access to files in dir [-net user]
-bootp file advertise file in BOOTP replies
-smb dir allow SMB access to files in 'dir' [-net user]
-redir [tcp|udp]:host-port:[guest-host]:guest-port
redirect TCP or UDP connections from host to guest [-net user]

Linux boot specific:
-kernel bzImage use 'bzImage' as kernel image
-append cmdline use 'cmdline' as kernel command line
-initrd file use 'file' as initial ram disk

Debug/Expert options:
-monitor dev redirect the monitor to char device 'dev'
-serial dev redirect the serial port to char device 'dev'
-parallel dev redirect the parallel port to char device 'dev'
-pidfile file Write PID to 'file'
-S freeze CPU at startup (use 'c' to start execution)
-s wait gdb connection to port
-p port set gdb connection port [default=1234]
-d item1,... output log to /tmp/qemu.log (use -d ? for a list of log items)
-hdachs c,h,s[,t] force hard disk 0 physical geometry and the optional BIOS
translation (t=none or lba) (usually qemu can guess them)
-L path set the directory for the BIOS, VGA BIOS and keymaps
-no-kvm disable KVM hardware virtualization
-no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC
-no-kvm-pit disable KVM kernel mode PIT
-enable-nesting enable support for running a VM inside the VM (AMD only)
-pcidevice host=bus:dev.func[,dma=none][,name=string]
expose a PCI device to the guest OS.
dma=none: don't perform any dma translations (default is to use an iommu)
'string' is used in log output.
-no-acpi disable ACPI
-no-hpet disable HPET
-curses use a curses/ncurses interface instead of SDL
-no-reboot exit instead of rebooting
-no-shutdown stop before shutdown
-loadvm [tag|id] start right away with a saved state (loadvm in monitor)
-vnc display start a VNC server on display
-daemonize daemonize QEMU after initializing
-tdf inject timer interrupts that got lost
-kvm-shadow-memory megs set the amount of shadow pages to be allocated
-mem-path set the path to hugetlbfs/tmpfs mounted directory, also enables allocation of guest memory with huge pages
-option-rom rom load a file, rom, into the option ROM space
-clock force the use of the given methods for timer alarm.
To see what timers are available use -clock ?
-startdate select initial date of the clock
-icount [N|auto]
Enable virtual instruction counter with 2^N clock ticks per instruction

During emulation, the following keys are useful:
ctrl-alt-f toggle full screen
ctrl-alt-n switch to virtual console 'n'
ctrl-alt toggle mouse and keyboard grab

When using -nographic, press 'ctrl-a h' to get some help.
头像
liuwusi
帖子: 55
注册时间: 2007-12-28 1:08
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#113

帖子 liuwusi » 2009-01-06 11:12

我也有过类似的想法,但是没去试验过,好像虚拟机要换着用,不能用同一个虚拟机
不过,到最后估计结果是:
人没事,电脑疯了。。。
头像
CN.Wanderer
帖子: 74
注册时间: 2008-01-13 18:05
送出感谢: 0
接收感谢: 0
联系:

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#114

帖子 CN.Wanderer » 2009-01-11 12:07

好奇心害死猫 :em20
沙僧对悟空说:“大师兄,这年头二师兄的肉都比师傅的贵了!”
ClearWind
帖子: 179
注册时间: 2007-06-28 16:45
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#115

帖子 ClearWind » 2009-05-26 14:58

汗,原来我这贴已经历史这么悠久了,而且似乎感兴趣的人还真不少呢.
ming_eva
帖子: 8
注册时间: 2007-08-29 23:09
送出感谢: 0
接收感谢: 0
联系:

Re:

#116

帖子 ming_eva » 2009-05-27 15:02

ofewiofewo 写了:试试不就知道,要装不同的虚拟机成功几率大些,类似vmware会检测系统中是否安装了某些驱动。

参考水木社区的josephpei的做法:电脑中装了一个Debian,Debian中装了一个Xen,Xen中装了一个freeBSD,freeBSD中装了一个VMware,VMware里装了一个WinXP,WinXP中装了一个VirtualPC,VirtualPC中装了一个Solaris,然后每天用Solaris工作。

LZ还觉得不够的话,可以再Solaris中上VNC到远程某台机器,那台机器再VNC回来控制Debian。
膜拜……高人啊
头像
aghhjkkkll
帖子: 62
注册时间: 2009-03-06 21:48
来自: 广州市
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#117

帖子 aghhjkkkll » 2009-05-27 23:55

搞这么多系统我个人认为没有这个必要吧。但是如果有时间和精力的话那不妨一试!
plepman
帖子: 72
注册时间: 2008-12-17 23:09
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#118

帖子 plepman » 2009-06-15 19:25

能的
计算2NN年后就是 矩阵
头像
我即存在
帖子: 50
注册时间: 2008-12-07 23:43
来自: 东华大学
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#119

帖子 我即存在 » 2009-06-15 19:42

这个。。。。。估计撑不住。。。。
上课研究生物,下课学习ubuntu
努力中......
alongangel
帖子: 19
注册时间: 2008-01-16 14:37
送出感谢: 0
接收感谢: 0

Re: ubuntu下虚拟一个XP,在XP里再虚拟一个Ubuntu,再在Ubuntu里再虚拟一个XP.....

#120

帖子 alongangel » 2009-06-19 15:18

:em06 。。。无语
回复

回到 “虚拟机和虚拟化”