SmartOS will not mount a usbkey automatically.
`disklist -r` will give you a list of attached removable disks. But also … why not just pushing the image via ssh/scp to /var/tmp and dd from there? (or directly pipe it through dd via ssh) — Daniel — Daniel On Sat, Jan 10, 2015 at 7:52 PM, J Marc Edwards via smartos-discuss <[email protected]> wrote: > Robert: > In following your recommended path, I'm trying to sort out the right strategy > to get the raw image onto the NUC using a USB stick. So, the USB stick is > formatted with some filesystem that Linux can see. I put the USB stick onto > the Linux workstation and copy the raw image straight onto the USB stick. > Now, I take the USB stick and put it into the NUC that is booted with > SmartOS. I'm thinking I would be able to log into the global zone and > perform a "dd if=/dev/usb/chromeos.bin of=/dev/kvm-zfs-dataset". My concern > here is the formatted USB stick and trying to get SmartOS to mount or read it. > Would you concur? > -M > -----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/21955186-c7d24c67 > Modify Your Subscription: https://www.listbox.com/member/?& > Powered by Listbox: http://www.listbox.com ------------------------------------------- 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
