Wordpress Themes

macchine virtuali: KVM su Ubuntu 8.10 Intrepid

KVM (Kernel-based Virtual Machine) da tempo integrato nel kernel Linux permette di creare macchine virtuali Linux / *nIx / Windows sfruttando appieno la versatilità e la potenza del kernel 2.6. qui la lista degli O.S. guest supportati da KVM.

unico requisito: la CPU deve avere il supporto INTEL-VT o AMD-V (a seconda abbiate Intel o AMD) per verificare basta un

egrep '(vmx|svm)' --color=always /proc/cpuinfo

se ne siete provvisti e avete Ubuntu 8.10 Intrepid potete seguire questa semplice guida e costruirvi una o più macchine virtuali che, se volete, possono partire al boot e quindi rimanere ‘nascoste’ finchè non deciderete di aprire una sessione SSH o di fiondarvi dentro utilizzando  ‘Virtual Machine Manager’ che gestisce graficamente le VMs installate e permette via VNC di avere una console su di esse.
Gli O.S. supportati da virt-install (gestibili poi con interfaccia grafica o con virsh -c qemu:///system):

  • Red Hat Enterprise Linux 2.1, 3, 4, 5
  • CentOS 5,
  • Fedora 5,6,7
  • Suse Linux Enterprise Server 10.x
  • Debian 4.0 (Etch) -  Debian Lenny
  • Ubuntu dapper, feisty, gutsy, hardy, intrepid
  • MS Windows XP – 2000 – 2k3 – Vista
  • Solaris 9,10
  • FreeBSD 6
  • OpenBSD 4
  • MS DOS
  • Novell Netware 4, 5, 6

esempi per installare O.S.:

  • WINDOWS XP: sudo virt-install –hvm –connect qemu:///system -n xpsp2 -r 512 -f windows.img -s 18 -c xp.iso –vnc –os-type windows –os-variant winxp
  • Debian Etch: sudo virt-install -n debianEtch –hvm -r 128 –vnc -f debian.img -s 5 -c debian-40r5-amd64-CD-1.iso
  • Ubuntu 8.10: sudo ubuntu-vm-builder kvm intrepid –arch ‘amd64′  –domain domain.org –mem ‘256′  –rootsize ‘4096′  –swapsize ‘1024′  –kernel-flavour ‘generic’  –hostname ‘kvm-ubuntu’  –ip 192.168.32.7 –mask 255.255.255.0 –net 192.168.32.0  –bcast 192.168.32.255  –gw 192.168.32.1 –dns 192.168.32.126  –addpkg vim ssh  –mirror ‘http://archive.ubuntu.com/ubuntu’  –components ‘main’  –name ‘useru’  –user ‘useru’  –pass ‘kvm’ –libvirt qemu:///system

buona virtualizzazione / tests.

Leave a comment

Please be polite and on topic. Your e-mail will never be published.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word