Hi, I have the base xen installed on CentOS 5.5 and have started xend. I am used to OpenVZ and the docs and examples with Xen to create a VM are completely unclear. Why would I want to create a vm without a network? Why isn''t there a clear example of how to do things, or did I just miss that? Does everyone use a gui, I am used to not using a gui, not sure how everything is done, the storage space configuration seems obtuse as well. Can someone please point me in a good direction, thanks, I just want to setup a few vms with a CentOS 5.5 template (or os) and then move on the creating a few with debian and/or ubuntu, etc... Thank you in advance, Randy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Try virt-install On Fri, Feb 18, 2011 at 4:26 PM, Randy Katz <rkatz@simplicityhosting.com>wrote:> Hi, I have the base xen installed on CentOS 5.5 and have started xend. > I am used to OpenVZ and the docs and examples with Xen to create > a VM are completely unclear. Why would I want to create a vm without a > network? > Why isn''t there a clear example of how to do things, or did I just miss > that? Does everyone > use a gui, I am used to not using a gui, not sure how everything is done, > the storage space > configuration seems obtuse as well. Can someone please point me in a good > direction, thanks, I > just want to setup a few vms with a CentOS 5.5 template (or os) and then > move on the creating > a few with debian and/or ubuntu, etc... > > Thank you in advance, > Randy > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Cheers, Wenda Ni, Ph.D. Dept. of Computer Science and Engineering State University of New York (SUNY) at Buffalo T: 716 982 6746 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
great, what is it, how do I "try" it? On 2/18/2011 1:36 PM, Wenda Ni wrote:> Try virt-install > > On Fri, Feb 18, 2011 at 4:26 PM, Randy Katz > <rkatz@simplicityhosting.com <mailto:rkatz@simplicityhosting.com>> wrote: > > Hi, I have the base xen installed on CentOS 5.5 and have started xend. > I am used to OpenVZ and the docs and examples with Xen to create > a VM are completely unclear. Why would I want to create a vm > without a network? > Why isn''t there a clear example of how to do things, or did I just > miss that? Does everyone > use a gui, I am used to not using a gui, not sure how everything > is done, the storage space > configuration seems obtuse as well. Can someone please point me in > a good direction, thanks, I > just want to setup a few vms with a CentOS 5.5 template (or os) > and then move on the creating > a few with debian and/or ubuntu, etc... > > Thank you in advance, > Randy > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > > > -- > Cheers, > Wenda Ni, Ph.D. > Dept. of Computer Science and Engineering > State University of New York (SUNY) at Buffalo > T: 716 982 6746 > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
http://www.lmgtfy.com/?q=virt-install On 02/18/11 23:12, Randy Katz wrote:> great, what is it, how do I "try" it? > > On 2/18/2011 1:36 PM, Wenda Ni wrote: >> Try virt-install >> >> On Fri, Feb 18, 2011 at 4:26 PM, Randy Katz >> <rkatz@simplicityhosting.com <mailto:rkatz@simplicityhosting.com>> wrote: >> >> Hi, I have the base xen installed on CentOS 5.5 and have started xend. >> I am used to OpenVZ and the docs and examples with Xen to create >> a VM are completely unclear. Why would I want to create a vm >> without a network? >> Why isn''t there a clear example of how to do things, or did I just >> miss that? Does everyone >> use a gui, I am used to not using a gui, not sure how everything >> is done, the storage space >> configuration seems obtuse as well. Can someone please point me in >> a good direction, thanks, I >> just want to setup a few vms with a CentOS 5.5 template (or os) >> and then move on the creating >> a few with debian and/or ubuntu, etc... >> >> Thank you in advance, >> Randy >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >> http://lists.xensource.com/xen-users >> >> >> >> >> -- >> Cheers, >> >> Wenda Ni, Ph.D. >> Dept. of Computer Science and Engineering >> State University of New York (SUNY) at Buffalo >> T: 716 982 6746 >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
it seems to just hang, here: Starting install... Retrieving file .treeinfo... | 417 B 00:00 Retrieving file boot.iso... | 10 MB 00:08 Creating storage file... | 100 GB 00:00 Creating domain... | 0 B 00:01 Connected to domain test1.mytestdomain.com Escape character is ^] anyone see this before? On 2/18/2011 2:18 PM, Bart Coninckx wrote:> http://www.lmgtfy.com/?q=virt-install > > On 02/18/11 23:12, Randy Katz wrote: >> great, what is it, how do I "try" it? >> >> On 2/18/2011 1:36 PM, Wenda Ni wrote: >>> Try virt-install >>> >>> On Fri, Feb 18, 2011 at 4:26 PM, Randy Katz >>> <rkatz@simplicityhosting.com<mailto:rkatz@simplicityhosting.com>> wrote: >>> >>> Hi, I have the base xen installed on CentOS 5.5 and have started xend. >>> I am used to OpenVZ and the docs and examples with Xen to create >>> a VM are completely unclear. Why would I want to create a vm >>> without a network? >>> Why isn''t there a clear example of how to do things, or did I just >>> miss that? Does everyone >>> use a gui, I am used to not using a gui, not sure how everything >>> is done, the storage space >>> configuration seems obtuse as well. Can someone please point me in >>> a good direction, thanks, I >>> just want to setup a few vms with a CentOS 5.5 template (or os) >>> and then move on the creating >>> a few with debian and/or ubuntu, etc... >>> >>> Thank you in advance, >>> Randy >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com<mailto:Xen-users@lists.xensource.com> >>> http://lists.xensource.com/xen-users >>> >>> >>> >>> >>> -- >>> Cheers, >>> >>> Wenda Ni, Ph.D. >>> Dept. of Computer Science and Engineering >>> State University of New York (SUNY) at Buffalo >>> T: 716 982 6746 >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Feb 19, 2011 at 4:26 AM, Randy Katz <rkatz@simplicityhosting.com> wrote:> Hi, I have the base xen installed on CentOS 5.5 and have started xend. > I am used to OpenVZ and the docs and examples with Xen to create > a VM are completely unclear. Why would I want to create a vm without a > network? > Why isn''t there a clear example of how to do things, or did I just miss > that?Which documentation did you use? IMHO http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/index.html is good. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
If you are using centos with Gnome you might consider using the GUI that you can get through the repos. But also spend the time reading on how the cli works because once you get the hang of it you will be a pro in no time... Kind Regards, Christopher James Petrolino On Feb 18, 2011, at 8:32 PM, "Fajar A. Nugraha" <list@fajar.net> wrote:> On Sat, Feb 19, 2011 at 4:26 AM, Randy Katz <rkatz@simplicityhosting.com> wrote: >> Hi, I have the base xen installed on CentOS 5.5 and have started xend. >> I am used to OpenVZ and the docs and examples with Xen to create >> a VM are completely unclear. Why would I want to create a vm without a >> network? >> Why isn''t there a clear example of how to do things, or did I just miss >> that? > > Which documentation did you use? IMHO > http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/index.html > is good. > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
one of my machines will not install a vm, just hangs, the other one I was able to install successfully and it seems to work well, yay! I have a question, I don''t see where the node is storing the ip address for the VM, not in the conf file no where. So please anyone, where is it? Thanks, Randy On 2/18/2011 6:37 PM, Chris Petrolino wrote:> If you are using centos with Gnome you might consider using the GUI that you can get through the repos. But also spend the time reading on how the cli works because once you get the hang of it you will be a pro in no time... > > Kind Regards, > > Christopher James Petrolino > > > On Feb 18, 2011, at 8:32 PM, "Fajar A. Nugraha"<list@fajar.net> wrote: > >> On Sat, Feb 19, 2011 at 4:26 AM, Randy Katz<rkatz@simplicityhosting.com> wrote: >>> Hi, I have the base xen installed on CentOS 5.5 and have started xend. >>> I am used to OpenVZ and the docs and examples with Xen to create >>> a VM are completely unclear. Why would I want to create a vm without a >>> network? >>> Why isn''t there a clear example of how to do things, or did I just miss >>> that? >> Which documentation did you use? IMHO >> http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/index.html >> is good. >> >> -- >> Fajar >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Feb 19, 2011 at 9:55 AM, Randy Katz <rkatz@simplicityhosting.com> wrote:> > one of my machines will not install a vm, just hangs, the other one I was > able to install successfully and it > seems to work well, yay! I have a question, I don''t see where the node is > storing the ip address for the VMIt doesn''t.>, not > in the conf file no where. So please anyone, where is it?In the default setup with bridge, the host (dom0) simply assigns which network the VM (domU) will be. The config line is the one that says "vif". Usually it''s the same LAN as eth0. domU can then assign its own IP address just like any other host on the network. This is similar to how vmware/virtualbox''s bridge networking. There are ways to change this behaviour (i.e. have the config in dom0, and have domU is it), but IMHO it''s too complicated for you right now. Search in the list archive if you still want to know. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
So what''s to stop me from using the same IP address twice (by accident)? Or will it catch that? Also, is there a way to use dynamically configurable storage space? Please explain, thanks. Randy On 2/18/2011 8:01 PM, Fajar A. Nugraha wrote:> On Sat, Feb 19, 2011 at 9:55 AM, Randy Katz<rkatz@simplicityhosting.com> wrote: >> one of my machines will not install a vm, just hangs, the other one I was >> able to install successfully and it >> seems to work well, yay! I have a question, I don''t see where the node is >> storing the ip address for the VM > It doesn''t. > >> , not >> in the conf file no where. So please anyone, where is it? > In the default setup with bridge, the host (dom0) simply assigns which > network the VM (domU) will be. The config line is the one that says > "vif". Usually it''s the same LAN as eth0. domU can then assign its own > IP address just like any other host on the network. This is similar to > how vmware/virtualbox''s bridge networking. > > There are ways to change this behaviour (i.e. have the config in dom0, > and have domU is it), but IMHO it''s too complicated for you right now. > Search in the list archive if you still want to know. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Feb 19, 2011 at 11:20 AM, Randy Katz <rkatz@simplicityhosting.com> wrote:> So what''s to stop me from using the same IP address twice (by accident)?By default? Nothing. Just like nothing will stop you from assigning the same IP address twice on two physical servers on the same network.> Or will it catch that?At this point I suggest you take a step back. Think of dom0 like a switch. Then think of domUs like any physical server on the same network connected to that switch. Anything you usually do with pysical servers and switches should apply here as well. Does this make sense so far? Having said that, on some physical switches/routers and servers there is a way to restrict certain MAC or IP address to a certain physical port. A similar thing can be applied on Xen, but it''s somewhat complicated. Search in the list archive if you still want to know how.> Also, is there a way to use dynamically configurable storage > space? > Please explain, thanks.Define "dynamically configurable storage": - if you mean "I want to change the size of disk presented to domU while it''s running without having to restart domU", then AFAIK there is no easy way to do that yet. - if you mean "I want to allow domU to use at most 10G disk space, but I don''t want to reserve all that space immediately", then the easiest way is to use sparse file as domU storage, and use it in domU config file with tap:aio. For example on how to create sparse file, see http://en.wikipedia.org/wiki/Sparse_file. virt-install also have an option to create sparse file (see "man virt-install"), and there should be an equivalent place to select in on virt-manager. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
ok, does using Sparse file take a performance hit? or is that the way many do in a production environment? On 2/18/2011 9:30 PM, Fajar A. Nugraha wrote:> On Sat, Feb 19, 2011 at 11:20 AM, Randy Katz > <rkatz@simplicityhosting.com> wrote: >> So what''s to stop me from using the same IP address twice (by accident)? > By default? Nothing. Just like nothing will stop you from assigning > the same IP address twice on two physical servers on the same network. > >> Or will it catch that? > > At this point I suggest you take a step back. Think of dom0 like a > switch. Then think of domUs like any physical server on the same > network connected to that switch. Anything you usually do with pysical > servers and switches should apply here as well. Does this make sense > so far? > > Having said that, on some physical switches/routers and servers there > is a way to restrict certain MAC or IP address to a certain physical > port. A similar thing can be applied on Xen, but it''s somewhat > complicated. Search in the list archive if you still want to know how. > > >> Also, is there a way to use dynamically configurable storage >> space? >> Please explain, thanks. > Define "dynamically configurable storage": > - if you mean "I want to change the size of disk presented to domU > while it''s running without having to restart domU", then AFAIK there > is no easy way to do that yet. > - if you mean "I want to allow domU to use at most 10G disk space, but > I don''t want to reserve all that space immediately", then the easiest > way is to use sparse file as domU storage, and use it in domU config > file with tap:aio. For example on how to create sparse file, see > http://en.wikipedia.org/wiki/Sparse_file. virt-install also have an > option to create sparse file (see "man virt-install"), and there > should be an equivalent place to select in on virt-manager. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Feb 19, 2011 at 1:42 PM, Randy Katz <rkatz@simplicityhosting.com> wrote:> ok, does using Sparse file take a performance hit?Of course.> or is that the way many do in a production environment?There''s usually a trade off between price - performance - managebility Want price and managebility? Choose sparse file or use zvol (you''ll suffer some performance penalty) Want price and performance? Choose LVM (It''s somewhat harder to manage since you''ll always have to allocate full capacity from the start, plus you''ll need a little more money to buy disks) Want performance and managebility? Choose netapp or other snapshot-capable-copy-on-write-storage-appliance (whose cost-per-TB is MUCH higher compared to the other two solutions). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users