Skip to content

Instantly share code, notes, and snippets.

@proywm
Created May 15, 2018 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proywm/6b67c689b22089664e00861bde158e9f to your computer and use it in GitHub Desktop.
Save proywm/6b67c689b22089664e00861bde158e9f to your computer and use it in GitHub Desktop.
$ sudo ./lkvm run --disk /home/probir/Downloads/ubuntu-core-16-amd64.img --kernel /home/probir/kvmtool/guest_linux_kernel/linux-4.13/arch/x86_64/boot/bzImage --network virtio -c 2 -m 6000 -i /home/probir/kvmtool/guest_linux_kernel/linux-4.13/initrd-4.13.0-41-generic.img --name ubuntu
# lkvm run -k /home/probir/kvmtool/guest_linux_kernel/linux-4.13/arch/x86_64/boot/bzImage -m 6000 -c 2 --name ubuntu
[ 0.000000] random: get_random_bytes called from start_kernel+0x42/0x4ff with crng_init=0
[ 0.000000] Linux version 4.13.0 (root@probir-XPS-13-9343) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #5 SMP Tue May 15 13:19:30 EDT 2018
[ 0.000000] Command line: noapic noacpi pci=conf1 reboot=k panic=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 earlyprintk=serial i8042.noaux=1 console=ttyS0 root=/dev/vda rw
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] CPU: vendor_id 'LKVMLKVMLKVM' unknown, using generic init.
[ 0.000000] CPU: Your system may be unstable.
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000ffffe] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000cfffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000001a6ffffff] usable
[ 0.000000] bootconsole [earlyser0] enabled
[ 0.000000] ERROR: earlyprintk= earlyser already used
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI not present or invalid.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] e820: last_pfn = 0x1a7000 max_arch_pfn = 0x400000000
[ 0.000000] MTRR: Disabled
[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[ 0.000000] CPU MTRRs all blank - virtualized system.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
Memory KASLR using RDRAND RDTSC...
[ 0.000000] e820: last_pfn = 0xd0000 max_arch_pfn = 0x400000000
[ 0.000000] found SMP MP-table at [mem 0x000f0340-0x000f034f] mapped at [ffff906bc00f0340]
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x7ff00000-0x82e42fff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI BIOS Error (bug): A valid RSDP was not found (20170531/tbxfroot-244)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x00000001a6ffffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x1a6fd5000-0x1a6ffffff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 1:a6f55001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 365850379 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x00000001a6ffffff]
[ 0.000000] Device empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x00000000cfffffff]
[ 0.000000] node 0: [mem 0x0000000100000000-0x00000001a6ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x00000001a6ffffff]
[ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[ 0.000000] Intel MultiProcessor Specification v1.4
[ 0.000000] MPTABLE: OEM ID: KVMCPU00
[ 0.000000] MPTABLE: Product ID: 0.1
[ 0.000000] MPTABLE: APIC at: 0xFEE00000
[ 0.000000] Processor #0 (Bootup-CPU)
[ 0.000000] Processor #1
[ 0.000000] IOAPIC[0]: apic_id 3, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] Processors: 2
[ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fefff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000ff000-0x000fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xd0000000-0xffffffff]
[ 0.000000] e820: [mem 0xd0000000-0xffffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] percpu: Embedded 39 pages/cpu @ffff906d66c00000 s119704 r8192 d31848 u1048576
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 1a6c0d8c0
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1511881
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: noapic noacpi pci=conf1 reboot=k panic=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 earlyprintk=serial i8042.noaux=1 console=ttyS0 root=/dev/vda rw
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 5910156K/6143608K available (9351K kernel code, 2492K rwdata, 4052K rodata, 2320K init, 2388K bss, 233452K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] ftrace: allocating 37832 entries in 148 pages
[ 0.004000] Hierarchical RCU implementation.
[ 0.004000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=2.
[ 0.004000] Tasks RCU enabled.
[ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.004000] NR_IRQS: 524544, nr_irqs: 440, preallocated irqs: 16
[ 0.004000] Console: colour *CGA 80x25
[ 0.004000] console [ttyS0] enabled
[ 0.004000] console [ttyS0] enabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] tsc: Detected 2194.918 MHz processor
[ 0.004000] tsc: Marking TSC unstable due to TSCs unsynchronized
[ 0.004000] Calibrating delay loop (skipped) preset value.. 4389.83 BogoMIPS (lpj=8779672)
[ 0.004000] pid_max: default: 32768 minimum: 301
[ 0.004000] Security Framework initialized
[ 0.004000] Yama: becoming mindful.
[ 0.004021] SELinux: Disabled at boot.
[ 0.004527] AppArmor: AppArmor disabled by boot time parameter
[ 0.011173] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.014764] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.015745] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.016094] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.017259] mce: CPU supports 32 MCE banks
[ 0.017774] mce: unknown CPU type - not enabling MCE support
[ 0.018472] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.019133] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.020350] Freeing SMP alternatives memory: 36K
[ 0.021997] smpboot: Max logical packages: 2
[ 0.022463] smpboot: CPU 0 Converting physical 2 to logical package 0
[ 0.023177] Not enabling interrupt remapping due to skipped IO-APIC setup
[ 0.132032] smpboot: CPU0: LKVMLKVMLKVM 06/3d (family: 0x6, model: 0x3d, stepping: 0x4)
[ 0.133178] Performance Events: no PMU driver, software events only.
[ 0.134065] Hierarchical SRCU implementation.
[ 0.135325] smp: Bringing up secondary CPUs ...
[ 0.136064] x86: Booting SMP configuration:
[ 0.136587] .... node #0, CPUs: #1
[ 0.004000] kvm-clock: cpu 1, msr 1:a6f55041, secondary cpu clock
[ 0.149511] KVM setup async PF for cpu 1
[ 0.149511] kvm-stealtime: cpu 1, msr 1a6d0d8c0
[ 0.149511] smp: Brought up 1 node, 2 CPUs
[ 0.149511] smpboot: Total of 2 processors activated (8779.67 BogoMIPS)
[ 0.152302] devtmpfs: initialized
[ 0.152500] x86/mm: Memory block size: 128MB
[ 0.153591] evm: security.selinux
[ 0.153975] evm: security.SMACK64
[ 0.154338] evm: security.SMACK64EXEC
[ 0.154733] evm: security.SMACK64TRANSMUTE
[ 0.156004] evm: security.SMACK64MMAP
[ 0.156401] evm: security.ima
[ 0.156723] evm: security.capability
[ 0.157178] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.157178] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.157955] pinctrl core: initialized pinctrl subsystem
[ 0.162427] RTC time: 18:55:53, date: 05/15/18
[ 0.163733] NET: Registered protocol family 16
[ 0.164867] cpuidle: using governor ladder
[ 0.164867] cpuidle: using governor menu
[ 0.165534] PCI: Using configuration type 1 for base access
[ 0.169531] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.169531] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.172119] ACPI: Interpreter disabled.
[ 0.172695] vgaarb: loaded
[ 0.172695] SCSI subsystem initialized
[ 0.173245] usbcore: registered new interface driver usbfs
[ 0.173245] usbcore: registered new interface driver hub
[ 0.173692] usbcore: registered new device driver usb
[ 0.176089] EDAC MC: Ver: 3.0.0
[ 0.176588] dmi: Firmware registration failed.
[ 0.176697] PCI: Probing PCI hardware
[ 0.176697] PCI host bridge to bus 0000:00
[ 0.177130] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.180006] pci_bus 0000:00: root bus resource [mem 0x00000000-0x7fffffffff]
[ 0.180859] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.183530] NetLabel: Initializing
[ 0.184006] NetLabel: domain hash size = 128
[ 0.184683] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.185494] NetLabel: unlabeled traffic allowed by default
[ 0.186226] clocksource: Switched to clocksource kvm-clock
[ 0.202579] VFS: Disk quotas dquot_6.6.0
[ 0.203144] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.204206] pnp: PnP ACPI: disabled
[ 0.209537] NET: Registered protocol family 2
[ 0.210330] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.211673] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.213309] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.214418] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.215447] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[ 0.216607] NET: Registered protocol family 1
[ 0.217339] Unpacking initramfs...
[ 1.129941] Freeing initrd memory: 48396K
[ 1.130606] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 1.131537] software IO TLB [mem 0xcc000000-0xd0000000] (64MB) mapped at [ffff906c8c000000-ffff906c8fffffff]
[ 1.133031] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fa37202099, max_idle_ns: 440795206796 ns
[ 1.134445] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 1.135432] Scanning for low memory corruption every 60 seconds
[ 1.136515] audit: initializing netlink subsys (disabled)
[ 1.137317] audit: type=2000 audit(1526410554.192:1): state=initialized audit_enabled=0 res=1
[ 1.137496] Initialise system trusted keyrings
[ 1.137505] Key type blacklist registered
[ 1.137530] workingset: timestamp_bits=36 max_order=21 bucket_order=0
[ 1.138693] zbud: loaded
[ 1.139111] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.142886] fuse init (API version 7.26)
[ 1.143769] 9p: Installing v9fs 9p2000 file system support
[ 1.145517] random: fast init done
[ 1.147122] Key type asymmetric registered
[ 1.147732] Asymmetric key parser 'x509' registered
[ 1.148645] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.150449] io scheduler noop registered
[ 1.150978] io scheduler deadline registered
[ 1.151574] io scheduler cfq registered (default)
[ 1.152735] virtio-pci 0000:00:00.0: virtio_pci: leaving for legacy driver
[ 1.153753] virtio-pci 0000:00:01.0: virtio_pci: leaving for legacy driver
[ 1.155087] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 1.178134] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a U6_16550A
[ 1.201618] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a U6_16550A
[ 1.224940] serial8250: ttyS2 at I/O 0x3e8 (irq = 4, base_baud = 115200) is a U6_16550A
[ 1.227162] Linux agpgart interface v0.103
[ 1.229471] loop: module loaded
[ 1.235462] vda: vda1 vda2 vda3
[ 1.236641] libphy: Fixed MDIO Bus: probed
[ 1.237270] tun: Universal TUN/TAP device driver, 1.6
[ 1.266183] PPP generic driver version 2.4.2
[ 1.267063] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.268198] ehci-pci: EHCI PCI platform driver
[ 1.268956] ehci-platform: EHCI generic platform driver
[ 1.269838] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.270868] ohci-pci: OHCI PCI platform driver
[ 1.271625] ohci-platform: OHCI generic platform driver
[ 1.272707] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.273859] i8042: PNP detection disabled
[ 1.275086] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.277159] mousedev: PS/2 mouse device common for all mice
[ 1.278929] input: AT Raw Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 1.285084] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 1.285139] rtc_cmos rtc_cmos: only 24-hr supported
[ 1.285201] i2c /dev entries driver
[ 1.285303] device-mapper: uevent: version 1.0.3
[ 1.285399] device-mapper: ioctl: 4.36.0-ioctl (2017-06-09) initialised: dm-devel@redhat.com
[ 1.329742] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.339901] NET: Registered protocol family 10
[ 1.368744] Segment Routing with IPv6
[ 1.371915] NET: Registered protocol family 17
[ 1.379452] 9pnet: Installing 9P2000 support
[ 1.380059] Key type dns_resolver registered
[ 1.380631] mce: Unable to init MCE device (rc: -5)
[ 1.381441] RAS: Correctable Errors collector initialized.
[ 1.382201] sched_clock: Marking stable (1380022769, 0)->(1723061656, -343038887)
[ 1.386512] registered taskstats version 1
[ 1.387354] Loading compiled-in X.509 certificates
[ 1.396200] Loaded X.509 cert 'Build time autogenerated kernel key: 497ca7a0ca7000af069cc7dbb19ff4fc7d26448a'
[ 1.399150] zswap: loaded using pool lzo/zbud
[ 1.412437] Key type big_key registered
[ 1.413202] Key type trusted registered
[ 1.416874] Key type encrypted registered
[ 1.417588] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 1.418894] evm: HMAC attrs: 0x1
[ 1.419595] Magic number: 2:920:948
[ 1.420335] tty tty5: hash matches
[ 1.420920] memory memory1: hash matches
[ 1.421690] hctosys: unable to open rtc device (rtc0)
[ 1.425705] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 1.426822] EDD information not available.
[ 1.440732] Freeing unused kernel memory: 2320K
[ 1.441658] Write protecting the kernel read-only data: 14336k
[ 1.443397] Freeing unused kernel memory: 876K
[ 1.444596] Freeing unused kernel memory: 44K
[ 1.448720] x86/mm: Checked W+X mappings: passed, no W+X pages found.
Loading, please wait...
starting version 229
[ 1.554065] virtio_net virtio0 enp0s0: renamed from eth0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.27.1
done.
mount: mounting /dev/vda on /root failed: No such device
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.
Rebooting automatically due to panic= boot argument
[ 17.735037] Unregister pv shared memory for cpu 0
[ 17.736999] Unregister pv shared memory for cpu 1
[ 17.736438] reboot: Restarting system
[ 17.736881] reboot: machine restart
# KVM session ended normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment