Check-in [64171aea54]
Not logged in
Overview
Comment:Fixed start option
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 64171aea541f42a68c738d9203d1a51ce7cefa74
User & Date: vitus on 2015-11-10 08:05:26
Other Links: manifest | tags
Context
2015-11-10
14:51
start to implement setup wizard check-in: c38a852bdf user: vitus tags: trunk
08:05
Fixed start option check-in: 64171aea54 user: vitus tags: trunk
2015-11-09
18:29
Fixed running without config file check-in: d4f4a7b3f1 user: vitus tags: trunk
Changes

Modified vws from [dd99cdcccb] to [952b985ab1].

59
60
61
62
63
64
65

66
67



68
69
70
71
72
73
74
75
76
77


def cmd_start(options):
    if options.stopped:
        arg=""
        if options.cdrom:
            arg=" -cdrom "+options.cdrom

        cmd=options.dir+"/start"+arg
        os.system(cmd)



    if options.gui:
        uri = spiceurl(options)
        os.system("remore-viewer $uri &")
    elif not options.stopped:
        print >>sys.stderr,"VM already running"
        
def cmd_stop(options):
    print send_command(options.sock,'system_powerdown')
    
def cmd_reset(options):







>
|
|
>
>
>


|







59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81


def cmd_start(options):
    if options.stopped:
        arg=""
        if options.cdrom:
            arg=" -cdrom "+options.cdrom
        cwd=os.getcwd()
        os.chdir(options.dir)
        os.system("./start%s" % arg)
        os.chdir(cwd)
        os.sleep(2)
        options.sock = connect_vm(options.dir)
    if options.gui:
        uri = spiceurl(options)
        os.system("remote-viewer %s &"%uri)
    elif not options.stopped:
        print >>sys.stderr,"VM already running"
        
def cmd_stop(options):
    print send_command(options.sock,'system_powerdown')
    
def cmd_reset(options):