Robert: Thanks...I'm dd'ing the RAW image to the /dev/zvol/rdsk/zones/UUID-disk0. My "if" image file is 7.8 GB. I stepped out for a coffee for about 15 minutes expecting the command to be done when I returned, but was still running. I killed the command to check out the progress. It seemed to be cranking along. I guess that I am proceeding along properly. It just seems to be taking a long time. Perhaps this is the byte-for-byte coping penalty that I am experiencing.
Thinking about how a Chromebox works booting Chrome OS in about 7 seconds, I'm thinking that I'm going to run into some issues here on how to get this zone's Chrome OS desktop up on this Intel NUC. Clearly, VNC is already expecting a desktop environment, so that is not the situation sitting at the console of the global zone. I'm still getting my hands around SmartOS, so please forgive my ignorance. I suspect that what may be in store here is a Chromium OS modification of the booting process, e.g. (1) immediately drop into the dev shell first, then after SSH'ing in, I could start the desktop. Is there another option that you would take here? -M -----Original Message----- From: Robert Mustacchi [mailto:[email protected]] Sent: Monday, January 12, 2015 2:35 PM To: [email protected]; [email protected] Subject: Re: [smartos-discuss] Running Chrome OS in SmartOS KVM zone...UPDATE... On 1/12/15 11:30 , J Marc Edwards wrote: > Robert: > > So, just to bring you up-to-date, I tested my RAW Chromium OS KVM image on > the Ubuntu workstation that I created it on by "kvm -had image.bin -m 1024 > -net nic -net user". The image booted up just fine. I logged into the image > just as I would have on a Chromebox with my Gmail userid, and it worked fine. > So I was pretty happy that I created what apprears to be a clean Chromium OS > KVM image. > > Now, I was running this "kvm" command from an xterm on a GNOME desktop, so > the kvm command popped up another window on the desktop when it booted. Now, > on my SmartOS NUC, I'm still not quite sure how this boot is going to work. You'd need to use the VNC console to access it or ssh in. > Anyway...I have scp'd the RAW kvm image over to my Intel NUC. No problem. > It looks good. > > I think I have created this VM using vmadm dataset correctly with the > following JSON: > > { > "brand": "kvm", > "ram": "1024", > "disks": [ > { > "size": 8192, > "boot": true, > "model": "virtio" > } > ] > } > > The KVM is immediately running. I assumed that I need to STOP this VM BEFORE > "dd'ing" the image into it. HOWEVER, when I try "vmadm stop UUID", the vmadm > command hangs and never returns to the command prompt. When I Ctrl-C the > command and then "vmadm list", I can see the VM with a state of "stopping". > > Were you thinking that I would perform the "dd" of the RAW image DIRECTLY > into the running VM ZVOL? No, of course not. I would have set the autoboot property to false in the JSON and then done the dd. vmadm stop by default tries to drop the ACPI based power off and then waits a while before it forcibly stops it. Given that you have nothing running in that guest, it's almost certainly not going to have anything running that would listen to ACPI. Robert > Regards, Marc > -----Original Message----- > From: Robert Mustacchi [mailto:[email protected]] > Sent: Saturday, January 10, 2015 12:22 PM > To: [email protected]; J Marc Edwards > Subject: Re: [smartos-discuss] Running Chrome OS in SmartOS KVM zone...some > advice/guidance... > > On 01/09/2015 08:15 PM, J Marc Edwards via smartos-discuss wrote: >> I have booted SmartOS on an Intel D54250WYKH NUC unit. The NUC has 16GB of >> memory and a 256GB SSD mSATA. SmartOS has booted fine off of the SmartOS >> USB boot stick. I have imported (“imgadm import”) some of Joyent’s public >> images for Ubuntu, SmartOS, and Centos. I have a SmartOS zone and an Ubuntu >> zone. No problems. Everything looks fine. So far, so good. I’m only >> planning on running a few zones at a time on this little NUC. >> >> >> >> Now…I want to run the Chromium OS in a KVM zone. So, in my naïve thinking, >> I decided to build a Chromium OS KVM “raw” image from Google’s Chrome OS >> developer page on my Ubuntu 15 Linux workstation with the intent of moving >> the Chromium OS KVM image over to the NUC and boot the image on a KVM zone. >> >> >> >> I kind of thought that there would be a relatively straightforward method to >> take the image tar/compressed on a USB stick and “import” the image onto the >> global zone of the NUC. However, I found out that this is much harder than >> I thought, and that I don’t have enough understanding of how to proceed. >> >> >> >> I’m hoping that someone in the community would kindly inform me of how they >> would expertly perform this task to migrate a Chromium OS KVM image to a >> SmartOS KVM zone. > > What I'd do is first count the total number of disks that you have in your > Chromium OS KVM image, sounds like it just has a single disk. Next, I'd go > ahead and just create a KVM VM via vmadm and just specify a disk size that > matches the disk size of the disks you have for Chromium OS. > Note, as opposed to specifying an image_uuid for those disks, you can just > describe the disk size. From there, that'll create a zvol which I would then > dd the raw image you said you have to. Once you do that, you should just be > able to vmadm start the VM. > > Robert > > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
