I've just successfully imgadm install'd a KVM image I created - and wound
up a with a Linux VM which has no disks attached to its disk controller.

The wiki helpfully describes how to create a KVM image using zfs send to a
gzipped file.  Then it blithely states:

they can also be imported locally using: imgadm -m <manifest> -f <file>
The process looks like this:
# imgadm install -m smartos-1.3.12.dsmanifest -f smartos-1.3.12.zfs.bz2

but with zero indication of what that manifest file should look like.  So,
guessing that I could use the manifest of the Linux image I overwrote when
I got it.  So I grabbed that, and edited it as follows:
 - Run uuid twice to make up uuids for owner and image
 - Take a sha1 sum of the gzipped zfs file for the files section
 - Make the length match the length of the gzipped zfs file

and wound up successfully importing it, but when booted it has no boot
media, and when I boot it from an ISO image, there are no disks attached to
the controller.

I'm guessing I did something simple wrong here?  (manifest below)

Thanks for any info,

Tim

{
  "v": 2,
  "uuid": "5dd00a5a-a4a2-11e3-b108-872584435077",
  "owner": "6fa8ca96-a4a2-11e3-989a-93f98fe13a98",
  "name": "gentoo-11.13",
  "version": "1",
  "state": "active",
  "disabled": false,
  "public": true,
  "published_at": "2014-03-05T20:12:49.000Z",
  "type": "zvol",
  "os": "linux",
  "files": [
    {
      "sha1": "fda6ca4435204ce64a7cb42dd07d279819a6341d",
      "size": 224434206,
      "compression": "gzip"
    }
  ],
  "description": "Gentoo Linux rolling release built March 5, 2013",
  "urn": "sdc:jpc:11.13:1.0.0",
  "requirements": {
    "networks": [
      {
        "name": "net0",
        "description": "public"
      }
    ],
    "ssh_key": true
  },
  "nic_driver": "virtio",
  "disk_driver": "virtio",
  "cpu_type": "qemu64",
  "image_size": 16384
}


-- 
http://timboudreau.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

Reply via email to