Skip to content

Instantly share code, notes, and snippets.

Created instance: i1396423181
OSv v0.06-rc2-26-g3c25888
[/]%
[/]% exit
func LaunchVM(c *VMConfig) (*exec.Cmd, error) {
cmd, err := vmxRun("-T", "ws", "start", c.VMXFile, "nogui")
if err != nil {
return cmd, err
}
conn, err := net.Dial("unix", c.sockPath())
//fmt.Println(c.sockPath())
if err != nil {
fmt.Println("err socket")
package main
import (
"fmt"
"os/exec"
"regexp"
"strings"
)
func main() {
cmd := exec.Command("gcutil", "getinstance", "t1")
asias@hj:/demo$ sh demo.serial.console.sh
# kvm run -k bzImage -m 448 -c 4 --name sid
Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.0+ (asias@hj) (gcc version 4.6.1 (Debian 4.6.1-5) ) #71 SMP PREEMPT Sun Aug 7 16:49:01 CST 2011
[ 0.000000] Disabled fast string operations
[ 0.000000] BIOS-provided physical RAM map:
root@sid:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 223 0 0 0 XT-PIC-XT-PIC timer
1: 19 0 0 0 XT-PIC-XT-PIC i8042
2: 0 0 0 0 XT-PIC-XT-PIC cascade
3: 1371 0 0 0 XT-PIC-XT-PIC virtio0
4: 23459 0 0 0 XT-PIC-XT-PIC virtio1
8: 0 0 0 0 XT-PIC-XT-PIC rtc0
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 290304 290178 290224 290238 Local timer interrupts
@asias
asias / gist:1137367
Created August 10, 2011 16:44
dmesg for vnc
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.0+ (asias@hj) (gcc version 4.6.1 (Debian 4.6.1-5) ) #71 SMP PREEMPT Sun Aug 7 16:49:01 CST 2011
[ 0.000000] Disabled fast string operations
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 00000000000fffff (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001c000000 (usable)
[ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
@asias
asias / dfd
Created May 26, 2011 12:32
abc
dmesg