Nikita A Menkovich
2011-Mar-28 14:35 UTC
[Libguestfs] FreeBSD clone fails to boot "Missing operating system"
Hello, I create simple script based on virt-resize as example, and I want to copy freebsd installation between vm's http://pastebin.com/ZK7Bg6FQ At boot I receive error "Missing operating system". There is first 1M of images: http://i.libc6.org/media/opensource/template.img http://i.libc6.org/media/opensource/cloned.img Images is similar except partition table on 0x1BE address It fails to boot only with freebsd, debian and centos clones fine. For example http://i.libc6.org/media/opensource/debian_temlate.img http://i.libc6.org/media/opensource/debian_cloned.img -- Nikita A Menkovich http://libc6.org/ JID: menkovich at gmail.com
Richard W.M. Jones
2011-Mar-28 16:04 UTC
[Libguestfs] FreeBSD clone fails to boot "Missing operating system"
On Mon, Mar 28, 2011 at 06:35:43PM +0400, Nikita A Menkovich wrote:> I create simple script based on virt-resize as example, and I want to > copy freebsd installation between vm's > http://pastebin.com/ZK7Bg6FQ > At boot I receive error "Missing operating system".This error "Missing operating system" comes from the boot sector; you can actually look at the boot sector very easily by doing: objdump -D -b binary -m i8086 cloned.img A while back I looked into one of these boot sector disassemblies and found that the "Missing operating system" error occurs for quite a specific reason, although I can't quite recall what that was now. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org