星期五, 4月 14, 2006

Use VMWare Player in Linx : create VMD with QEMU

這個是從 sshlog 的blog看到的,
VMWare的free 版本 : VMWare Player ,幾乎有Workstation 一樣的功能。
但是最不方便的是,不能create VM和Virtial HD。
所以都要用其他VMware裝好的VM,copy過來用。

但是sshlog的文章中,用QEMU 來create HD image :
#sudo apt-get install qemu
#qemu-img create -f vmdk WindowsXPPro.vmdk 2G Formating ‘WindowsXPPro.vmdk’, fmt=vmdk, size=2097152 kB
至於VM檔,sshlog的blog也有說明,不過很長,這個大概是參考build好的VM檔建立的吧:
WindowsXPPro.vmx #!/usr/bin/vmware
config.version = “8″
virtualHW.version = “3″
ide0:0.present = “TRUE”
ide0:0.filename = “WindowsXPPro.vmdk”
memsize = “192″
MemAllowAutoScaleDown = “FALSE”
ide1:0.present = “TRUE”
ide1:0.fileName = “WindowsXPPro.iso”
ide1:0.deviceType = “cdrom-image”
ide1:0.autodetect = “TRUE”
floppy0.fileType = “file”
floppy0.fileName = “cdboot1.img”
floppy0.startConnected = “True”
ethernet0.present = “TRUE”
usb.present = “TRUE”
sound.present = “TRUE”
sound.virtualDev = “es1371″
displayName = “Windows XP Pro”
guestOS = “winxppro”
nvram = “WindowsXPPro.nvram”
MemTrimRate = “-1″
ide0:0.redo = “”
ethernet0.addressType = “generated”
uuid.location = “56 4d 15 5e 2f a8 0a dd-21 1a c2 83 2f 44 d3 40″
uuid.bios = “56 4d 15 5e 2f a8 0a dd-21 1a c2 83 2f 44 d3 40″
ethernet0.generatedAddress = “00:0c:29:44:d3:40″
ethernet0.generatedAddressOffset = “0″
tools.syncTime = “TRUE”
ide1:0.startConnected = “TRUE”
uuid.action = “create”
checkpoint.vmState = “WindowsXPPro.vmss”
tools.remindInstall = “TRUE”

以上兩段code都是copy自sshlog

沒有留言:

網誌存檔