Installing Xen On CentOS 5.2 (i386) - Page 2
3 Creating A Virtual MachineCentOS comes with a nice tool called virt-install with which we can create virtual machines for Xen. To start it, we simply run virt-install The tools asks a few questions before it creates a virtual machine. I want to call my first virtual machine vm01, with 256MB RAM and a disk size of 4GB. I want to store it in the file /vm/vm01.img: What is the name of your virtual machine? <-- vm01 The question about the graphics support refers to the installer, not the virtual machine itself! It is possible to start a graphical installer, but you'd have to connect to it via VNC. It's easier to use the text installer - it offers the same options, so I choose the text installer. As install location, you should specify a mirror close to you where the installer can download all files needed for the installation of CentOS 5.2 in our virtual machine. You can find a list of CentOS mirrors here: http://www.centos.org/modules/tinycontent/index.php?id=13 After we have answered all questions, virt-install starts the normal CentOS 5.2 installer (in text mode) in our vm01 virtual machine. You already know the CentOS installer, so it should be no problem for you to finish the CentOS installation in vm01. After the installation, we stay at the vm01 console. To leave it, type CTRL+] if you are at the console, or CTRL+5 if you're using PuTTY. You will then be back at the dom0 console. virt-install has created the vm01 configuration file /etc/xen/vm01 for us (in dom0). It should look like this: cat /etc/xen/vm01
Run xm console vm01 to log in on that virtual machine again (type CTRL+] if you are at the console, or CTRL+5 if you're using PuTTY to go back to dom0), or use an SSH client to connect to it. To get a list of running virtual machines, type xm list The output should look like this: [root@server1 ~]# xm list To shut down vm01, do this: xm shutdown vm01 To start vm01 again, run xm create /etc/xen/vm01 If you want vm01 to start automatically at the next boot of the system, then do this: ln -s /etc/xen/vm01 /etc/xen/auto Here are the most important Xen commands: xm create -c /path/to/config - Start a virtual machine.
4 Links
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial




print: 

Recent comments
21 hours 42 min ago
23 hours 21 min ago
1 day 11 hours ago
1 day 13 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 6 hours ago
2 days 9 hours ago
3 days 13 hours ago
3 days 13 hours ago