Habräžã®Proxmoxä»®æ³åã·ã¹ãã ã«é¢ããèšäºãããã€ããããŸããããã¡ããããã®èšäºãæžãåã«ãèªåã®å®éšã®ããã«ããããå匷ããªããã°ãªããŸããã§ããã ç§ã®ç 究ã¯ããã¢ã¡ã¿ã«ãžã®Proxmox 3.1ã®ã€ã³ã¹ããŒã«ãæ§æãããã³æ¢åã®ä»®æ³ãã·ã³ã®VMWareããæ°ããã·ã¹ãã ãžã®ç§»è¡ã«ãŸã§åã³ãŸããã OSã®ã€ã³ã¹ããŒã«ã¯ãæçš¿ã®ååã瀺ãããã«ãProxmox 3.1é
åžããããããçŸç¶ã®ãŸãŸãå®è¡ãããŸããã ä»®æ³ãã·ã³ã®ã€ã³ã¹ããŒã«ãæ§æãããã³ã€ã³ããŒãã®ããã»ã¹ã§ãèå³æ·±ãç¬éãçããŸããããã®ç¬éãã³ãã¥ããã£ãšå
±æããããšæããŸãã
æåã®ç¬éïŒã·ã¹ãã ãšã¡ãã»ãŒãžãGRUB LOADING ...ãã®ã€ã³ã¹ããŒã«
OSããã£ã¹ã¯ããã€ã³ã¹ããŒã«ããåŸãProxmoxãåèµ·åããŠåããŠèµ·åããŸãããã®æç¹ã§ããGRUB LOADING ..ããšããã¡ãã»ãŒãžã衚瀺ãããèµ·åãããªãŒãºããŸãã
ãGRUB LOADING ..ãã®åé¡ã¯ãproxmoxãã€ã³ã¹ããŒã«ãããšãã«èæ
®ãã¹ã2ã€ã®èŠå ã«é¢é£ããŠããŸãã
- OSã®ã€ã³ã¹ããŒã«ãå®è¡ãããããŒããã©ã€ãã¯ãèµ·åæã«åžžã«æåã§ãªããã°ãªããŸããïŒæ®å¿µãªãããBIOSã§ã®ããŒãé åºãªãã·ã§ã³ã®å¯Ÿå¿ããã€ã³ã¹ããŒã«ã§ã¯ãæãŸããçµæããã©ããã¯ã¹ãåŸãããŸããããç®çã®sata0ããŒããèŠã€ããŠãæ£ããæ§æã§ã·ã¹ãã ãèµ·åããå¿
èŠããããŸãïŒ
- ãã©ã€ãã¯åžžã«æ¥ç¶ãããŠããå¿
èŠããããŸãïŒãã©ã€ãããªãå ŽåããGRUB LOADING ..ãã芳å¯ããŸããæããã«ããã©ã€ãããã€ã¹ã¯èµ·åã¹ã¯ãªããã«è¡šç€ºãããŸãïŒ
2çªç®ã®ç¬éïŒopenvzã³ã³ãããŒïŒproxmoxïŒã§ãããã¯ãŒã¯ãæ§æããããããªããžãªã©ã®ã€ã³ã¿ãŒãã§ãŒã¹ãã¢ã¯ãã£ãã«ãã
Webã€ã³ã¿ãŒãã§ãŒã¹ã§ã³ã³ãããŒãäœæããåŸããããã¯ãŒã¯æ§æã«åé¡ããããŸãã èšå®æã«ãIPã¢ãã¬ã¹ãæå®ããããšã¯å¯èœã§ãããããã¯ä»®æ³NATã«ãªããŸãã ã³ã³ãããŒãžã®ã¢ã¯ã»ã¹ã¯vhostã§å¯èœã§ããããããã¯ãŒã¯å
šäœããã§ã¯ãããŸããã ãããã¯ãŒã¯å
šäœããã³ã³ããã«ã¢ã¯ã»ã¹ã§ããããã«ããã«ã¯ãã€ãŒãµãããïŒeth0ïŒãæ§æããå¿
èŠããããŸãã ã€ã³ã¹ããŒã«æ®µéã§ãeth0ãèšå®ã§ããŸãããIPã¢ãã¬ã¹ã¯å²ãåœãŠãããŸããã ããã«ãã³ã³ããèªäœã«ã¯eth0ããããŸããïŒifconfigã³ãã³ãã§ã¯è¡šç€ºãããŸããïŒã ããã§åé¡ãçºçããŸããããªããžã€ã³ã¿ãŒãã§ã€ã¹ã®èšå®æ¹æ³ã§ãã
OpenVZãããã¯ãŒã¯ã®ã»ããã¢ããã«é¢ããè³æã«ãããšã次ã®ããšãè¡ãå¿
èŠããããŸããã³ã³ãããå
¥åããŸãïŒã100ã-ã³ã³ããIDïŒ
vzctr enter 100
ã³ã³ããã·ã¹ãã ã§eth0ã€ã³ã¿ãŒãã§ã€ã¹ãå®çŸ©ããŸãïŒãã®æé ãè¡ããªãå Žåã次ã®æé ã¯ã³ã³ããããªããŒãããããŸã§æå¹ã§ãïŒ
ifconfig eth0 0
eth0ã€ã³ã¿ãŒãã§ã€ã¹ãæ§æããŸã
ifconfig eth0 192.168.XXX.XXXããããã¹ã¯255.255.255.0
ip route add 192.168.XXX.YYY dev eth0
ipã«ãŒãã¯192.168.XXX.YYYãä»ããŠããã©ã«ããè¿œå ããŸã
ãŸãã¯æ°žç¶çã«/ etc / network / interfaceã«è²¢ç®ãã
èªåeth0
iface eth0 inet static
ã¢ãã¬ã¹192.168.XXX.XXX
ããããã¹ã¯255.255.255.0
ã²ãŒããŠã§ã€192.168.XXX.YYY
ãã€ã³ã3ïŒVMWareä»®æ³ãã·ã³ãKVM Proxmoxã«ã€ã³ããŒããã
- freebsd.vmdkãã€ã³ããŒããã
æ¢åã®VMWareä»®æ³ãã·ã³ãFreeBSDã§ã€ã³ããŒãããåã«ãProxmox KVMã§åããã©ã¡ãŒã¿ãŒã䜿çšããŠãããã¿ã€ããäœæãããvmdkããã£ã¹ã¯åœ¢åŒãéžæããŠIDEãšå
¥åããå¿
èŠããããŸãã ãããã¿ã€ããäœæãããããfreebsd.vmdkããã£ã¹ã¯ã/ var / lib / vz / images / id /ã«ã³ããŒããååãå€æŽããŠïŒäœæãããã£ã¹ã¯ã®ååãæå®ïŒãä»®æ³ãã·ã³ãèµ·åããŸãã ããŠã³ããŒããã«ãŒãããŒãã£ã·ã§ã³ã®æ€çŽ¢ã§çµäºããå Žåã¯ãçä¹±ãã£ã¹ã¯ããã·ã³ã®ãã©ã€ãã«ããŒãããhdrwã¢ãŒãã§live-cdããã®èµ·åãç¹°ãè¿ããŸãïŒãã£ã¹ã¯ãžã®æžã蟌ã¿ïŒã ããŠã³ããããdf -hã¹ã©ã€ã¹ãèŠãŠããã£ã¹ã¯ã©ãã«ïŒadãŸãã¯daïŒãèŠã€ãã/ etc / fstabãã¡ã€ã«ãç·šéãããã£ã¹ã¯ã©ãã«ãåã®ã³ãã³ãã§åãåã£ããã®ã«å€æŽããŸãã OSãæ£åžžã«ããŒãããåŸããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ãç·šéããå¿
èŠããããŸãã - windows.vmdkãã€ã³ããŒããã
ã€ã³ããŒãããVMWareä»®æ³ãã·ã³ããã€ãã£ããœãããŠã§ã¢ã§æåã«ããŠã³ããŒãããŠãããããŒããããã·ã³ã®ã¬ãžã¹ããªã«IDEãã©ã€ããŒæ
å ±ãè¿œå ããpciide.sysãïŒ
SystemRootïŒ
System32 / Driversã«ã³ããŒããå¿
èŠããããŸãã VMWare Toolsãä»®æ³ã·ã¹ãã ããã¢ã³ã€ã³ã¹ããŒã«ããä»®æ³ãã·ã³ãåæããŠãvmdkä»®æ³ãã£ã¹ã¯ãã¡ã€ã«ãProxmoxïŒKVMïŒã«ã³ããŒããŸãã ã€ã³ããŒãããããã£ã¹ã¯ïŒIDEã¿ã€ãïŒã§ä»®æ³ã·ã¹ãã ãããŒãããŸãã
ç¬é4ïŒProxmoxã§ã®VMDK圢åŒã®ä»®æ³ãã£ã¹ã¯ã®å§çž®
ç§ã®æèŠã§ã¯ãvmdkãã£ã¹ã¯ã®å§çž®æé ã¯éåžžã«éèŠã§ãã ç©çãã£ã¹ã¯å®¹éã¯åžžã«å¶éãããŠããŸãã
- WINDOWS.vmdkãå§çž®ãã
ä»®æ³ãã£ã¹ã¯ã®å§çž®ã¯ãã²ã¹ãä»®æ³ã·ã¹ãã ã®å®è¡äžã®vmdkãã¡ã€ã«ã®ãèšåŒµãã®åœ±é¿ïŒãã¡ã€ã«ãµã€ãºã®å¢å ïŒãšé¢é£ããŠããŸãã MS Windowsã§VMDK圢åŒã®ä»®æ³ãã£ã¹ã¯ãå§çž®ããã«ã¯ãVMWareã®ãŠãŒãã£ãªãã£ãããã€ã䜿çšã§ããŸãïŒvmware-mountããã³vmware-vmdiskmanager-VDDKããã±ãŒãžã®äžéšãšããŠãããããŠã³ããŒãã§ããŸãã ãµã€ã ãªããªã Proxmoxã¯Debianã§å®è¡ãããlinux64ã¢ãŒã«ã€ããããŠã³ããŒãããŠã€ã³ã¹ããŒã«ããŸãã
tar -xzf VMware-vix-disklib-5.1.0-774844.x86_64.tar.gz
cd ./vmware-vix-disklib-distrib
./vmware-install.pl
ã€ã³ã¹ããŒã«åŸã/ etc / ld.so.confã«æ¬¡ã®è¡ãè¿œå ããŸãã
/usr/lib/vmware-vix-disklib/lib64
ãããªããŠãŒãã£ãªãã£ã¯ããã£ã¹ã¯ã§åäœããæºåãã§ããŠããŸãã ãã£ã¹ã¯ãå§çž®ã®å¯Ÿè±¡ãšãªãã²ã¹ãä»®æ³ã·ã¹ãã ããªãã«ããŸãã vmdk-diskå§çž®æé ã¯ã3ã€ã®ãã§ãŒãºã§æ§æãããŸãã
- vmdkãã£ã¹ã¯ããã©ã°ããŒã«
vmware-vdiskmanager -d /path/to/name.vmdk
- ãã£ã¹ã¯å§çž®ã®æºå
vmware-mount /path/to/name.vmdk /mnt/vmdk/
ããŠã³ããã§ãŒãºäžã«äžæãªNTFSãã¡ã€ã«ã·ã¹ãã ã«é¢ãããšã©ãŒãçºçããå ŽåãDebianã§ãã®ã·ã¹ãã ã®ãµããŒããããŒãããå¿
èŠããããŸãã
apt-get install ntfs-3g
vmware-vdiskmanager -p /mnt/vmdk/
- ãã£ã¹ã¯å§çž®
vmware-mount -x # vmdk
losetup -d /dev/loop0 # : "device is busy"
vmware-mount -x #
vmware-vdiskmanager -k /path/to/name.vmdk #
vmdkãã£ã¹ã¯å§çž®ã®å¹æã¯ãã²ã¹ãä»®æ³ã·ã¹ãã ã®å®éã®ãã£ã¹ã¯ãµã€ãºãŸã§ã§ãã
- å§çž®FREEBSD.vmdk
FREEBSD OSã§ä»®æ³ãã£ã¹ã¯ãå§çž®ããå Žåãäžèšã®ãŠãŒãã£ãªãã£ã¯æ©èœããŸããã ãã¹ãã·ã¹ãã ã«vmdkãã£ã¹ã¯ãããŠã³ãããåé¡ããããŸããDebianã¯UFSãã¡ã€ã«ã·ã¹ãã ãèªèããŸããã ãã ãã解決çããããŸããFreeBSDã®çµã¿èŸŒã¿æ©èœã䜿çšã§ããŸããå
ã®ã²ã¹ãOSã®ãã¡ã€ã«ã·ã¹ãã ã®ãã³ããäœæããæ°ããäœæããä»®æ³ãã£ã¹ã¯ã«åŸ©å
ãããã£ã¹ã¯ãå€æŽããŸã-freeBSDãæ°ããhddã«è»¢éããæé
ãã€ã³ã5ïŒã³ã³ãœãŒã«ãä»ããŠProxmoxã§ä»®æ³ã²ã¹ãã·ã¹ãã ã埩å
ãã
Webã€ã³ã¿ãŒãã§ã€ã¹ãä»ããŠProxmoxã§ä»®æ³ã²ã¹ãã·ã¹ãã ã埩å
ããæé ã¯ããç¥ãããŠããŸãããã³ã³ãœãŒã«ã§ãããã©ã®ããã«çºçãããã¯æ確ã§ã¯ãããŸããã ã²ã¹ãã·ã¹ãã ïŒKVMã«ã€ããŠè©±ãïŒã¯ããã¡ã€ã«vzdump-qemu-id-date-time.vma.gzã«ããã¯ã¢ãããããŸãã ããã¯ãäºåã«ããã±ãŒãžåãããä»®æ³ãã£ã¹ã¯ãšã²ã¹ãOSæ§æãã¡ã€ã«ã®ã¢ãŒã«ã€ãã§ãã
æåã«.vmaãã¡ã€ã«ãååŸããããšã¯è«ççã§ãïŒ
gzip -d vzdump-qemu-103-date-time.vma.gz
103ã¯Proxmoxã®ã²ã¹ãã·ã¹ãã çªå·ã§ã
次ã«ããã¡ã€ã«vzdump-qemu-103-date-time.vmaãé
åžããå¿
èŠããããŸãã ãã®ãããProxmox 3.1ã«ã¯ç¹å¥ãªãŠãŒãã£ãªãã£vmaããããŸã
vma extract vzdump-qemu-103-date-time.vma /var/103
泚ïŒæåã«ãã£ã¬ã¯ããªã103ãã/ varãã£ã¬ã¯ããªã«äœæãããŠããªãå Žåãã³ãã³ãã¯ãšã©ãŒãªãã§æ©èœããŸãã ãã®çµæã/ var / 103 /ã«ã¯ããã€ãã®ãã¡ã€ã«ããããŸãã
vm-103-disk-1.raw
qemu-server.conf
泚ïŒvmdkãã£ã¹ã¯ã䜿çšããŠã²ã¹ãã·ã¹ãã ã埩å
ããå Žåã埩å
ããããã£ã¹ã¯ã¯ãrawã圢åŒã«ãªããŸãã ãããä¿®æ£ããã«ã¯ãç®çã®åœ¢åŒã«å€æããŸãã
qemu-img -f raw -O vmdk vm-103-disk-1.raw vm-103-disk-1.vmdk
ã¢ãŒã¡ã³ã6ïŒProxmoxäžã®Windowsã²ã¹ãã®æ£ããã·ã£ããããŠã³ïŒKVMïŒ
Proxmoxã²ã¹ãã·ã¹ãã ïŒKVMïŒã®ãOSã®æ£ããã·ã£ããããŠã³ããšã¯ããç©çãã·ã³ã®ã·ã£ããããŠã³ãã¿ã³ãæŒãããšããã€ãã³ããã·ãã¥ã¬ãŒãããããšãæå³ããŸãã UNIXã·ã¹ãã ã§ã¯ããã®ãããªã·ã£ããããŠã³ã¯æ£åžžã«æ©èœããŸãã ããã¯ãQEMUã®ããŒã ã«ãã£ãŠéæãããŸãã
qm shutdown 103
ãã ããããã¯ã°ã©ãŠã³ãã®Windowsã²ã¹ãã·ã¹ãã ã§ã¯ãã³ãã³ãã¯ãšã©ãŒãè¿ããã·ã¹ãã ã¯ã·ã£ããããŠã³ããŸããã åæã¯ããã°ã€ã³ãæåããå Žåã«ã®ã¿ãæ£ãããããŸãã¯å¥ã®ã³ãã³ãïŒqm stop 103ïŒã«ãã£ãŠã匷å¶çã«ãïŒã€ãã³ããé»æºã±ãŒãã«ã®åæãïŒçºçããŸãã ã²ã¹ãWindows OSã®ããŒã«ã«ããªã·ãŒã調æŽããããšã«ããããã®ç¶æ³ãä¿®æ£ã§ããŸãã
ã¹ã¿ãŒã-ã³ã³ãããŒã«ããã«-管çããŒã«-ããŒã«ã«ã»ãã¥ãªãã£ããªã·ãŒ-ã»ãã¥ãªãã£èšå®-ããŒã«ã«ããªã·ãŒ-ã»ãã¥ãªãã£èšå®-ã·ã£ããããŠã³ïŒã·ã¹ãã ã«ãã°ã€ã³ããã«ã·ã¹ãã ãã·ã£ããããŠã³ã§ããããã«ããŸãïŒãæå¹ãïŒ