Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 14:42:11 +0200
From:      Markiyan Kushnir <markiyan.kushnir@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Linux on BHyVe in 10.0-RELEASE
Message-ID:  <CACvtUJdKEKKYfzv3imYntDaEMCUavXYBtC1rj9wwovNnvV_i5A@mail.gmail.com>
In-Reply-To: <CAGBxaXm=PgQdE5EXa0yiKFKNZMm4iEJnHrEH0P1jeK-rUOYQsw@mail.gmail.com>
References:  <CAEGOEeUo-spSp051MWg-4%2B_vDACBK9NqWOPz7LBdDEHvGS3=_w@mail.gmail.com> <52E0C1D4.9000304@freebsd.org> <CAEGOEeWbysCn5Ma-aGOLGmbJPTn0CTa%2BMjRvwGVYm7jJJ57coQ@mail.gmail.com> <52E0D1BB.2050807@callfortesting.org> <CAEGOEeVUvHmypGBgd0V=Ffhzex2zsVuihA8rbxhLX9QCFxvO%2Bg@mail.gmail.com> <CAGBxaXm1-0NBwOTx40V9C-Z0wF5a9y%2BHNMRuM-N5UansiiREeQ@mail.gmail.com> <CAEGOEeV2=3Nn-5rebUJfNL-xeutSZH5_i7HkiB9ucEC%2BPD2_nw@mail.gmail.com> <CAGBxaXkui_vc0RLNcXab6qE2YRXyXRcP-p=KmwtQBsF87mDYXw@mail.gmail.com> <CAEGOEeV7rOogDA3NhZFMjbQ30ygJ4s%2BnD=DkvMNj-KR3Vah35w@mail.gmail.com> <CAGBxaX=aBYeXVKC5TNW%2Bu_VNMbbrgU251XA0w7rVUmqZ=PvjAA@mail.gmail.com> <CAEGOEeVhK9mQ2xh3VPCoUNDQR5X-SE1ZEjnNp3CcRwmkMMCzRA@mail.gmail.com> <CAGBxaXkq=AG%2B%2BdwxpAu3W=0UQBgbWzutkSV=EauNGDsgTYNS1Q@mail.gmail.com> <CAEGOEeVshDQPm5pU0B5Mq5M3Bw3F2u1oMteTRbm8PY7qyWt=zA@mail.gmail.com> <CA%2BD9QhvsQ1oB%2BXL8fmB3P2XCXnuO2ONnf5zUSNB-CBdpVm5XWg@mail.gmail.com> <CAEGOEeXWE0hZhLBCXR2CNVwE9GH9xOMgzKGtfoxEkq9HhRretQ@mail.gmail.com> <CAEGOEeWt2YKieThBrK-fC51_Jq5MWQr38fZ05oJtkTG6WOkWww@mail.gmail.com> <CAFgRE9GNh%2BbVEhW5COtx4CattM0aVMFiEFabqWcw8dXf9Pc36w@mail.gmail.com> <CAEGOEeUhWNTbTbT4j6BioQiAK2VMkGWTq3KPb4uc5DVBys4yug@mail.gmail.com> <CAGBxaX=xnww8xHdi33kmckh2gfGrbRsH1cFe_=vqdtRFXNZVYQ@mail.gmail.com> <CACvtUJdMqGWtKbAbdfHQMbufrzeVCJJTARX9cWiKt22aSMSyxA@mail.gmail.com> <CAGBxaX=70FAdDu=-pNYx0DFxp=bvWJXaCULqkswGto==u5Dv-g@mail.gmail.com> <CACvtUJfY=4Cihm2Zv-91hKRR-Wb7X_5K8PJDAjqh-jj6CippLg@mail.gmail.com> <CAGBxaXm49UYVu_Sp=nrpVKbHQc6Qxbn7p5C5rAJ_y%2B_oywMT5A@mail.gmail.com> <CACvtUJd3zm6vfTt%2B_rVy8%2BLeUwu3dq7Pwq%2BG_HXLiZA2L15ErQ@mail.gmail.com> <CAGBxaXkyf7EvnXJqseZvFJSa7LrKpt7EkNvop1cB=i74hDeX2A@mail.gmail.com> <CACvtUJd6jXtJ4-XT8HcVZtrNBGBnPRuoncXh_H%2BqLgfcv1JAjw@mail.gmail.com> <CAGBxaX=je1PGvW4iaf=x-yvSJbqXxQnv%2BF2o70C_-%2BK%2BGmo69g@mail.gmail.com> <CACvtUJfPYYotiKLuJ1G5M4Fa-R_5rYVerzaE=D2HtC9Wt%2Bdbrw@mail.gmail.com> <CAGBxaX=wbPYp0yDf5RkN7R4Wvdm-mBET_efeR_8E54Xa06onFw@mail.gmail.com> <CAGBxaXm=PgQdE5EXa0yiKFKNZMm4iEJnHrEH0P1jeK-rUOYQsw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2014-01-29 Aryeh Friedman <aryeh.friedman@gmail.com>:
>
>
>
> On Tue, Jan 28, 2014 at 11:56 PM, Aryeh Friedman <aryeh.friedman@gmail.com>
> wrote:
>>
>> Where did you get the orignial starter script for this from was it from
>> vmrun or the petitecloud sample script I posted... 2 reasons for asking:
>>
>> 1. It is turning out to be annoying inflexible in-terms of the values of
>> various parameters (I can compensate for most of this in my personal playing
>> with it to make it fit into petitecloud)
>> 2. It uses a non-existent option (-I)
>>
>> Both are characterstics of petitecloud scripts but not so much of vmrun.sh
>> (the main reason I do not recommend using petitecloud scripts except as
>> nothing but barebone starter scripts if you use them to make your own).
>>

I use bare grub-bhyve/bhyve/bhyvectl, wrapped in a shell script in the
manner of vmrun.sh, although fitted to my needs, nothing special. I
didn't have a chance to use petitecloud yet.


>> The reason for bringing all the above up is I am having a very hard time
>> getting it to work and if it is from petitecloud can you please kindly walk
>> me through how you went from my script to yours... the main issue I am
>> attempting to over come is currently PC assumes that there is a single
>> "disk" that represents the "instance" (a running instance is nothing more
>> then loading it into RAM and wrapping a hyperv around it) [e.g. something
>> like /vms/import/ubu.img] and that it contains *ALL* the data that is needed
>> to boot (i.e. no other files are needed)... so far it appears (and I hope I
>> am wrong) there is no way to force a linux instance into this model because
>> you have to have the disk, the cd and the device map in the same dir but
>> kept as separate files.... namely something like this:
>>
>> linux/
>>    device.map
>>    disk.img
>>    cd.img
>>
>> seems to be the only model grub2-bhyve will be able to boot (symlinks at
>> least on the surface seem to be a no go also...)
>
>
> Turns out absolute pathed symlinks work but relative ones do not
>

you can also try hard links to CD images, as long as you are OK to not
cross the file system boundaries. Also, in device.map you can specify
absolute paths, and the cd* and hd* images don't have to be in the
same directory.

Yes, looks like grub-bhyve needs the cd0/hd0 pair in device.map, but
you even may cheat it like this:

(cd0) /fake
(hd0) /data2/mkushnir/tmp/diskdev-ubuntu-13

provided that "diskdev-ubuntu-13" has an installed OS on it.


>>
>> ...  there are the following problems with this model though when doing
>> mass VM's:
>>
>> * You have to copy the CD repeatedly to the boot dir (this is likely why
>> openstack does not support cd based installs)
>> * It makes for a really messy when attempting to make sure you completely
>> nuke a vm when you delete it (currently pettiecloud does not delete the disk
>> when the instance is deleted but this will be an option soon an likely the
>> default)
>>
>>
>> Of course the long term solution is unified off disk (vs. off loader)
>> booting but until then any good work arounds?
>>
>>
>> On Tue, Jan 28, 2014 at 6:23 AM, Markiyan Kushnir
>> <markiyan.kushnir@gmail.com> wrote:
>>>
>>> 2014-01-28 Aryeh Friedman <aryeh.friedman@gmail.com>:
>>> > Seems like it is a processor motherboard combo thing (see other thread)
>>> >
>>>
>>> ah, ok. good to know :)
>>>
>>> --
>>> Markiyan.
>>>
>>> >
>>> > On Sun, Jan 26, 2014 at 9:26 AM, Markiyan Kushnir
>>> > <markiyan.kushnir@gmail.com> wrote:
>>> >>
>>> >> yes, once I posted it I realized that these sysctls are not relevant
>>> >> at this stage.
>>> >>
>>> >> There was a segfault, was that bhyvectl? May be it makes sense for
>>> >> someone (a bhyve dev) to inspect it?
>>> >>
>>> >> --
>>> >> Markiyan.
>>> >>
>>> >>
>>> >> 2014-01-26 Aryeh Friedman <aryeh.friedman@gmail.com>:
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Sun, Jan 26, 2014 at 8:46 AM, Markiyan Kushnir
>>> >> > <markiyan.kushnir@gmail.com> wrote:
>>> >> >>
>>> >> >> hmm...
>>> >> >>
>>> >> >> 15:45:test-bhyve# md5 ubuntu-12.04.3-server-amd64.iso
>>> >> >> MD5 (ubuntu-12.04.3-server-amd64.iso) =
>>> >> >> 2cbe868812a871242cdcdd8f2fd6feb9
>>> >> >
>>> >> >
>>> >> > # md5 ubuntu/ubuntu.iso
>>> >> > MD5 (ubuntu/ubuntu.iso) = 2cbe868812a871242cdcdd8f2fd6feb9
>>> >> >
>>> >> > doing the sysctl does no good
>>> >> >
>>> >> > --
>>> >> > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>>
>>
>>
>>
>> --
>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACvtUJdKEKKYfzv3imYntDaEMCUavXYBtC1rj9wwovNnvV_i5A>