LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-28-2010, 08:59 AM   #1
bezeek
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Rep: Reputation: 0
Question Xen Cloud newbie - created/started my first VM, but now what?


I'm trying to familiarize myself with the Xen Cloud platform with no particular expectations but to see it work.

I installed the XCP Base ISO to a blank 80GB drive, dropped to CLI, used partition 3 (as created by the installer) for my ~70GB VHD, created a VM with the CentOS 5.4 (64-bit) template, bound my VHD and physical CD-ROM with the installation media to the VM, and finally started up the VM.

The VM is shown to be running, but where do I go from here?

Should I be able to interact with the VM graphically? Does Xen provide a terminal interface to the VM? Or, is there no option but to SSH into the VM with the help of KickStart?

For that matter, am I better off installing Xen over an existing OS then going the P2V route?

Any help with this is greatly appreciated!

(P.S. As the title says, I'm very uneducated in the ways of Xen, so don't hesitate to call me out if I'm trying to golf with a hockey stick.)

[Edit: I've seemingly solved my problem using the steps I posted below, although the steps are by no means a comprehensive XCP set-up guide. I just hope they are of some help to others who seek to build their own cloud.]

Last edited by bezeek; 11-08-2010 at 12:12 PM. Reason: Solved
 
Old 10-29-2010, 03:14 AM   #2
ionrivera
Member
 
Registered: May 2010
Distribution: Debian, RHEL, AIX, Solaris, HP-UX
Posts: 61

Rep: Reputation: 4
Thumbs up

Quote:
Should I be able to interact with the VM graphically? Does Xen provide a terminal interface to the VM? Or, is there no option but to SSH into the VM with the help of KickStart?
YES. You can interact with VM graphically. Xen provides terminal interface to the VM. In addition, You can even ssh to your VM and or access it graphically through VNC provided that you have a running VNC server installed on that particular VM... just the same as what a "physical machine" do. But then, it's more important to have an overall control on your cloud.

You can use OpenXenManager (an alternative to Citrix's XenServer XenCenter) and install it from any client machine within your network to control your XenServer Host. You can monitor your virtual machines, access virtual machine consoles, perform allowed operations (start, stop, suspend, reboot...), create virtual machines, and more.

Last edited by ionrivera; 10-29-2010 at 03:42 AM.
 
Old 11-02-2010, 10:13 PM   #3
xudonglee
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
The vnc is able to help you view the VM graphically!
 
Old 11-04-2010, 12:39 PM   #4
bezeek
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Cool

Well, this has been, (and continues to be,) one crazy trip!

I hesitate to mark the thread solved already, (as I'm still working through problems,) but here's what I've determined thanks to the guidance I've gotten here:
1. Did a clean XCP 0.5.0 install
2. Booted Ubuntu LiveUSB on a second PC
a. Installed OpenXenCloud and python-gtk-vnc
b. Downloaded and unzipped XVPAppliance (Hint: use a mounted drive with ample free space)
c. Connected to XCP host using OpenXenCloud
i. Imported the XVPAppliance image (Hint: import progress is shown in the new VM's log)
ii. Started the XVPAppliance VM
3. Connected to XVPAppliance on XCP host:
Code:
/usr/lib/xen/bin/xenconsole `xe vm-list params=dom-id name-label=xvpappliance --minimal`
a. Configured XVP (Hint: console emulation is very buggy at this stage. Use the XVP configuration instructions to guide you)
i. IP set to XCP network (i.e. 192.168.128.2)
ii. Gateway set to XCP bridge (i.e. 192.168.128.1)
iii. Default web server settings used (Hint: DO fill in the fields for the SSL cert)
b. Quit xenconsole with Ctrl+]
4. Restarted XVPAppliance (Hint: "xe vm-reboot name-label=xvpappliance")
5. Connected to XVPAppliance via SSH
a. Edited /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=dhcp
...
b. Quit SSH
c. Restarted VM network (Hint: "/etc/init.d/network restart")
d. Got DHCP address (Hint: "ifconfig eth0")
6. Restarted XVPAppliance
7. Opened XVP web interface (i.e. https://192.168.1.xxx)
Now I am able to create/edit VMs using OpenXenManager, and connect reliably, (and at the earliest stages - i.e. for installation,) to their consoles over VNC using the XVP web interface.

If someone wants to try retracing these steps to make sure I recalled them accurately I would surely appreciate it! And in general let me know if I could make these steps any more comprehensive/useful!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Cloud Pipeline: future of inter cloud provider sneaker-nets LXer Syndicated Linux News 0 08-16-2009 04:01 AM
LXer: Why UC Santa Barbara Professor started a Cloud Computing Company LXer Syndicated Linux News 0 05-08-2009 09:10 PM
LXer: Citrix Systems' Simon Crosby: Xen and the Art of Cloud Computing LXer Syndicated Linux News 0 08-12-2008 08:50 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 12:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration